﻿@model LTSMZ.life.Model.Orders
@{
    Layout = null;
}

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta property="qc:admins" content="455737244762564116375" />
    <meta name="applicable-device" content="pc" />


    <title>
        购物车-春华秋实网
    </title>
    <!--base-->
    <meta name="Keywords" content="春华秋实网 中国优质食品提供者！有机、蔬菜、水果、健康、无公害、高品质！" />
    <meta name="Description" content="春华秋实网 中国优质食品提供者！有机、蔬菜、水果、健康、无公害、高品质！" />
    <meta name="baidu-site-verification" content="YSpkJegPiOEmjxn6" />
    <meta name="applicable-device" content="pc" />
    <link href="~/Content/index_files/common_968a2948.css" rel="stylesheet" type="text/css" />

    <script src="~/Scripts/jquery-1.8.2.min.js"></script>

    <script type="text/javascript">
        window.WebSiteDomain = "https://www.benlai.com";
        var cdnPath = "//image.benlailife.com,//image1.benlailife.com,//image2.benlailife.com,//image3.benlailife.com,//image4.benlailife.com,//image5.benlailife.com,//image6.benlailife.com,//image7.benlailife.com,//img1.benlailife.com,//img2.benlailife.com,//img3.benlailife.com";
        var BENLAI = { Shop: {}, Model: {}, Msg: { Address: {}, Order: {} }, Path: { ScriptPath: '/Scripts/', CSSPath: 'https://image1.benlailife.com/Content/style/', ImagePath: 'https://image1.benlailife.com', Version: '8.3.88' }, Config: { PhoneRegisterOnly: '1', DeleteLoginCookieInLayOutFlag: '1' }, t: '2016-10-19 08:51:20 ' };</script>
    <script src="/Scripts/NewBasic.js?v=8.3.88" type="text/javascript"></script>

    <script type="text/javascript" src="~/Content/cart_files/js/ld.js" async="true"></script>
    <script type="text/javascript">
        BENLAI.Model.CartModels={"SProduct":[],"FullList":[],"SingleList":[],"SuperCheap":[],"MutiList":[],"IceBagList":[],"HasElement":false,"TotalCount":0,"TotalAmt":0,"TotalGiftCount":0,"TotalGiftAmt":0,"CheckAll":1,"AreaName":null,"MinPrice":0,"FreeShip":0,"DisCountAmt":0,"CustomerRank":0,"CustomerSysNo":0,"CartListBA":"[]","IsAlertWindow":0,"AlertWindowType":0,"WinContentList":[],"Tip":[{"type":3,"msg":"北京市满60.00元包邮，您还差60.00元，去凑单","title":"运费提示信息","img":"~/Content/cart_files/image/cart_ico03.png","pricelevel":7}]};
        var products=BENLAI.Model.CartModels.SProduct;
        var singleProducts=BENLAI.Model.CartModels.SingleList;
        var multProducts=BENLAI.Model.CartModels.MutiList;
        window.criteo_q = window.criteo_q || [];
        window.criteo_q.push(
                { event: "setAccount", account: 31361 },
                { event: "setEmail", email: "13521948801" },
                { event: "setSiteType", type: "d" },
                { event: "viewBasket", item: function(){
                    var pl = [];
                    //普通商品
                    for (var i = 0; i <products.length; ++i) {
                        pl.push({
                            id: products[i].ProductID,
                            price: products[i].Price,
                            quantity: products[i].Quantity});
                    }
                    //单品
                    for(var i=0;i<singleProducts.length;++i){
                        pl.push({
                            id: singleProducts[i].Product.ProductID,
                            price: singleProducts[i].Product.Price,
                            quantity: singleProducts[i].Product.Quantity});
                    }
                    //多品
                    for(var i=0;i<multProducts.length;++i){
                        var tmpList=multProducts[i].ProductList;
                        for(var j=0;j<tmpList.length;++j){
                            pl.push({
                                id: tmpList[j].Product.ProductID,
                                price: tmpList[j].Product.Price,
                                quantity: tmpList[j].Product.Quantity});
                        }
                    }
                    return pl;
                }
                }
        );
    </script>
    <style>
        table {
            width: 100%;
            font-size: 12px;
            padding-bottom: 50px;
        }

        table {
            table-layout: fixed;
            empty-cells: show;
            border-collapse: collapse;
            margin: 0 auto;
        }

        td {
            height: 30px;
        }

        h1, h2, h3 {
            font-size: 12px;
            margin: 0;
            padding: 0;
        }

        table {
            border: 1px solid #cad9ea;
            color: #666;
        }

            table th {
                background-repeat: repeat-x;
                height: 30px;
            }

            table td, table th {
                border: 1px solid #cad9ea;
                padding: 0 1em 0;
            }

            table tr.alter {
                background-color: #f5fafe;
            }
           
    </style>
</head>
<body>
    <script src="~/Content/cart_files/js/AllSiteBPD.js" type="text/javascript"></script>
    <noscript>
        <img src="~/Content/cart_files/image/adv.gif" style="display: none;" />
    </noscript>
    <div style="display: none">
        <input type="hidden" id="UserLogin" value="0" autocomplete="off" />
        <input type="hidden" id="IsLoad_Header" value="0" autocomplete="off" />
        <input type="hidden" id="UserId" value="" autocomplete="off" />
        <input type="hidden" id="SZDCustomerLogin" value="" />
    </div>
    <div class="head15" id="headerView">
        <div class="head15_top">
            <div class="head15_top_box_s">
                <div class="login15" id="welcome_login"></div>
                <div class="head15_menu">
                    <ul>
                        <li>
                            <s></s>
                            <div class="menu_word"><a href="/Home/order">我的订单</a></div>
                        </li>
                        <li>
                            <div class="head15_twocode">
                                <dl>
                                    <dt><a>掌上本来</a><div class="head15_bg"></div></dt>
                                    <dd>
                                        <img src="~/Content/cart_files/image/App_QR_Code_3de39ad3.png" width="100" height="100" alt="" />
                                        <p>扫描下载客户端</p>
                                    </dd>
                                </dl>
                            </div>
                        </li>
                        <li>
                            @*<div class="head15_service">
                                <dl>
                                    <dt><a href="javascript:void(0)">客户服务</a><div class="head15_bg"></div></dt>
                                    <dd>
                                        <p><a href="javascript:void(0)" data-type="easemob">在线客服</a></p>
                                        <p><a href="/help-7.html" target="_blank">联系客服</a></p>
                                        <p><a href="/help-39.html" target="_blank">销售热线</a></p>
                                        <p><a href="/help.html" target="_blank">帮助中心</a></p>
                                    </dd>
                                </dl>
                            </div>*@
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="box990">
        <div class="cart_top">
            <div class="mt25 fl">
                <a href="/">
                    <img src="~/Content/cart_files/image/logo_new_d634af2f.gif" width="136" height="54" alt="本来生活网" />
                </a>
            </div>
            <div class="mt30 fr mr15">
                <img src="~/Content/cart_files/image/cart08.gif" width="550" height="46" alt="" />
            </div>
        </div>
    </div>
    <div class="clear"></div>
    <div class="box990" id="layoutContent">

        <script>
            var alertPriceChange = "0";
            var alertOrderTypeSelectError = "";
        </script>
        <link href="~/Content/cart_files/cart_7b2ab481.css" rel="stylesheet" type="text/css" />
        <script src="~/Content/cart_files/js/Cart.js" type="text/javascript"></script>
        <script src="~/Content/cart_files/js/ShoppingCart.js" type="text/javascript"></script>
        <div class="~/Content/cart_tit_n">
            <div class="~/Content/cart_word">我的购物车</div>
        </div>
        <div id="min_all">
            <form @*action="/Home/addOrderSon"*@ method="post">
                <!--凑单提示-->
                <table id="aa">
                    <tr>                        
                        <td>商品</td>
                        <td>图片</td>
                        <td>单价</td>
                        <td>购买数量</td>
                        <td>小计</td>
                        <td>操作</td>
                    </tr>

                </table>
                <div style="width:100%;margin-left:850px;"><input type="button" style="background-color:orange;color:white;font-size:14px;font-weight:bold;border-radius:12px; width:120px;height:40px;" value="去结算" onclick="Balance()"/></div>
            </form>
           

        </div>
        <div class="clear"></div>
        
        <div data-type="tuijian" class="tuijcart">
            <h2 id="tablist">
                <a href="javascript:;" hidefocus="true" num="1" style="display: none; ">超值加价购</a>
                <a href="javascript:;" hidefocus="true" num="2" style="display: none;">每日最新鲜</a>
                <a href="javascript:;" hidefocus="true" num="3">推荐商品</a>
                <a href="javascript:;" hidefocus="true" num="4">最近浏览商品</a>
                <a href="javascript:;" hidefocus="true" num="5">收藏夹</a>
                <a href="javascript:;" hidefocus="true" num="6">已删除商品</a>
            </h2>
            <ul data-type="tabdiv" num="1" class="tui_tab" style="display: none; "></ul>
            <ul data-type="tabdiv" num="2" style="display: none;"></ul>
            <ul data-type="tabdiv" num="3" style="display: none;">
                <div class="mb10 mt10 tac" style="padding-top: 10px; text-align: center; height: 200px;">暂无推荐信息</div>
            </ul>
            <ul data-type="tabdiv" num="4" style="display: none"></ul>
            <ul data-type="tabdiv" num="5" style="display: none"></ul>
            <ul data-type="tabdiv" num="6" style="display: none"></ul>
            <div class="clear"></div>
        </div>
        <input type="hidden" id="benlaibaifendianval" value="benlaicart1" />
        <input type="hidden" id="isFirst" value="1" />
        <textarea style="display: none" id="TabProduct">
            <%for (var i = 0, len = this.length; i < len; i++) {
            var v = this[i];
            if (i >= 5) break;
            var liStyle = i == 4 ? "m0" : "";%>
            <li class="<% liStyle %>" style="margin-right:59px">
                <%if(this.key)
                {%>
                <a href="javascript:void(0)" data-type="productLinkAddr" data-link="<% v.ProductLink %>" data-parme="req_id={<% this.key %>}" target="_blank" title="<% v.ProductName %>" class="pic">
                    <%}else{ %>
                    <a href="<% v.ProductLink %>" target="_blank" title="<% v.ProductName %>" class="pic">
                        <%} %>
                        <img lazyload=lazyload /><% v.ProductBigPSrc %>  class="img150150" />
                    </a>
                    <div class="name">
                        <%if(this.key)
                        {%>
                        <a href="javascript:void(0)" data-type="productLinkAddr" data-link="<% v.ProductLink %>" data-parme="req_id={<% this.key %>}" target="_blank" title="<% v.ProductName %>">
                            <%}else{ %>
                            <a href="<% v.ProductLink %>" target="_blank" title="<% v.ProductName %>">
                                <%} %>
                                <% v.BriefNamePromotionWord %>
                            </a>
                        </a>
                    </div>

                    <div class="price">

                        ￥<% v.CDPrice>0?ToPrice(v.CDPrice.toString()):ToPrice(v.CurrentPrice) %>
                        <% if(v.CDPrice>0) {%>
                        <span>￥<% ToPrice(v.CurrentPrice) %></span>
                        <% } %>
                    </div>
                    <input type="hidden" value="<% v.SysNo %>" class="hotid" />
                    <div class="butn">
                        <%if(!v.IsCanDelivery){ %>
                        <input type="button" class=" butn3_4" value="" />
                    </div>
                    <%}else{ %>
                    <input type="button" class=" butn3" value="" data-type="add" data-productid="<% v.SysNo %>" data-producttype="0" name="btnbutton" id="btnRecommentList<% v.SysNo %>" />
                    <%} %>
                </a>
            </li>
            <%} %>

        </textarea>
        <textarea style="display: none" id="hotproudctTemplate">
            <%for (var i = 0, len = this.length; i < len; i++) {
            var v = this[i];
            if (i >= 5) break;
            var liStyle = i == 4 ? "m0" : "";%>
            <li class="<% liStyle %>" style="margin-right:59px">
                <%if(this.key)
                {%>
                <a href="javascript:void(0)" data-type="productLinkAddr" data-link="<% v.ProductLink %>" data-parme="req_id={<% this.key %>}" target="_blank" title="<% v.ProductName %>" class="pic">
                    <%}else{ %>
                    <a href="<% v.ProductLink %>" target="_blank" title="<% v.ProductName %>" class="pic">
                        <%} %>
                        <img lazyload=lazyload /><% v.ProductImageLink %>  class="img150150" />
                    </a>
                    <div class="name">
                        <%if(this.key)
                        {%>
                        <a href="javascript:void(0)" data-type="productLinkAddr" data-link="<% v.ProductLink %>" data-parme="req_id={<% this.key %>}" target="_blank" title="<% v.ProductName %>">
                            <%}else{ %>
                            <a href="<% v.ProductLink %>" target="_blank" title="<% v.ProductName %>">
                                <%} %>
                                <% v.ProductName + (v.ProductPromotionWord?v.ProductPromotionWord:"") %>
                            </a>
                        </a>
                    </div>

                    <div class="price">
                        ￥<% ToPrice(v.ProductNowPrice.toString()) %>
                    </div>
                    <input type="hidden" value="<% v.ProductSysNo %>" class="hotid" />
                    <div class="butn">
                        <%if(v.Status!=0){ %>
                        <input type="button" class=" butn3_4" value="" />
                    </div>
                    <%}else{ %>
                    <input type="button" class=" butn3" value="" data-productid="<% v.ProductSysNo %>" data-type="add" data-producttype="0" name="btnbutton" id="btnRecommentList<% v.ProductSysNo %>" />
                    <%} %>
                </a>
            </li>
            <%} %>

        </textarea>

        <textarea style="display: none" id="CartContent">
            <% if(this.HasElement){ %>
            <!--凑单提示-->
            <% if(this.Tip.length > 0){ %>
            <div class="cart_allbulletin">
                <ul>
                    <% $.each(this.Tip,function(tipindex,tipValue){ %>
                    <li style="z-index:20;">
                        <em class="<%tipValue.type == 2?'ico02':'ico01'%>"></em>
                        <a href="javascript:void(0);" data-type="coudan" tiptitle='<% tipValue.title %>' tiptype='<% tipValue.type %>' tippricelevel="<% tipValue.pricelevel %>" class="word01"><% tipValue.msg %></a>
                        <s></s>
                    </li>
                    <% }); %>
                </ul>
            </div>
            <% } %>
            <% if(this.FullList.length > 0){ %>
            <div class="cart_bulletin">
                <% $.each(this.FullList,function(k,v){ %>
                <dl>
                    <dt><p><% v.HitBase.PromotionsTypeName %></p></dt>
                    <dd>
                        <% if (v.HitBase.HitType == 1){ %>
                        <div class="fl"><% v.HitBase.PromotionsWord %>，已减<% v.HitBase.PromotionAmt %>元</div>
                        <% } else { %>
                        <div class="fl"><% v.HitBase.PromotionsWord %></div>
                        <% } %>
                        <% if (v.HitBase.IsGift || v.HitBase.IsAddPrice){ %>
                        <% if (v.HitBase.IsAddPrice){ %>
                        <div class="cart_btn" pt="f">
                            <div class="btn_on"><a href="javascript:void(0)" data-type="ganda" promotion-type="f" promotion-num="<% k %>" promotion-t="<% v.HitBase.IsGift?1:(v.HitBase.IsAddPrice?2:0) %>"><% v.HitBase.SelectGiftNum > 0 ? "重新换购" : "换购" %></a></div>
                        </div>
                        <% }if (v.HitBase.IsGift && !v.HitBase.IsAllGift){ %>
                        <div class="cart_btn">
                            <div class="btn_on"><a href="javascript:void(0)" data-type="ganda" promotion-type="f" promotion-num="<% k %>" promotion-t="<% v.HitBase.IsGift?1:(v.HitBase.IsAddPrice?2:0) %>"><% v.HitBase.SelectGiftNum > 0 ? "重新选择" : "选择" %></a></div>
                        </div>
                        <% }%>
                        <% } %>
                    </dd>
                </dl>
                <% if (v.HitBase.HitGift.length > 0){ %>
                <dl style="display:<% (v.HitBase.SelectGiftNum > 0||v.HitBase.IsAllGift)?" block":"none"=block":"none" %=%>
                    ">
                    <dt></dt>
                    <dd>
                        <div class="fl">
                            <% "[" + v.HitBase.PromotionsTypeName + "] " %>
                            <span>
                                <% if (v.HitBase.SelectGiftNum > 0 || v.HitBase.IsAllGift){ %>已选择
                                <% $.each(v.HitBase.HitGift,function(k1,hg){ %>
                                <% if(hg.IsSelect == 1){ %>
                                <font><% hg.ProductName %> x <% hg.Quantity %></font>
                                <% }else if(hg.IsSelect == 0 && v.HitBase.IsAllGift){ %>
                                <font><% hg.ProductName %>(<% hg.InventoryMsg %>) x <% hg.Quantity %></font>
                                <% } %>
                                <% });} %>
                            </span>
                        </div>
                    </dd>
                </dl>
                <% }}); %>
            </div>
            <% } %>
            <div class="cart_n">
                <ul class="cart_tit">
                    <input type="checkbox" name="proselectall" boxtype="a" /><% this.CheckAll==1?"Checked='checked'":"" %> />
                    <span style="margin-right: 50px;">全选</span>
                    <span style="margin-right: 290px;">商品</span>
                    <span style="margin-right: 110px;">单价</span>
                    <span style="margin-right: 55px;">购买数量</span>
                    <span style="margin-right: 100px;">小计</span>
                    <span style="margin-right: 35px;">库存状态</span>操作
                </ul>
                <ul>
                    <% if (this.SProduct.length > 0){ %>
                    <% $.each(this.SProduct,function(k,v){ %>
                    <% if (v.IsCanDelivery){ %>
                    <li>
                        <div class="check"><input type="checkbox" boxtype="p" data-producttype="0" data-productid="<% v.ProductSysNo %>" /><% v.Check==1?"Checked='checked'":"" %> ></div>
                        <div class="pic"><a href="<% v.Link %>" target="_blank"><img src="<% v.ImagePath %>" /></a></div>
                        <div class="name">
                            <a href="<% v.Link %>" target="_blank"><% v.ProductName %></a>
                            <% if (v.Note != "" && v.Note != null){ %>
                            <span style="color:red;">订制标语：<% v.Note %></span><br />
                            <% }if (v.CanUseCoupon!=1){ %>
                            <img src="~/Content/cart_files/image/none_ico01_e07a7dcc.gif" alt="不可用券" />
                            <% }if (v.IsToDayDelivery){ %>
                            <img src="~/Content/cart_files/image/today_a8f9ba72.gif" alt="今夜达" />
                            <% } %>
                        </div>
                        <div class="price"><% v.Price.toFixed(2) %></div>
                        <div class="c_quantity"><p><a data-type="minus" data-producttype="0" data-productid="<% v.ProductSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_03_0c4d2417.gif" width="15" height="15" /></a></p><p class="mt0"><input data-type="input" data-producttype="0" data-productid="<% v.ProductSysNo %>" data-productvalue="<% v.Quantity %>" type="text" class="textgt_n" value="<% v.Quantity %>" maxlength="3" /></p><p><a data-type="add" data-producttype="0" data-productid="<% v.ProductSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_04_0e745786.gif" width="15" height="15" /></a></p></div>
                        <div class="subtotal"><% (v.Price * v.Quantity).toFixed(2) %></div>
                        <div class="distribution"><% v.InventoryMsg %></div>
                        <div class="operating"><a data-type="AddWishs" productsysno="<% v.ProductSysNo %>" hidefocus="true" href="javascript:;">收藏</a><br /><a class="mt5" data-type="del" data-producttype="0" data-productid="<% v.ProductSysNo %>" hidefocus="true" href="javascript:;">删除</a></div>
                    </li>
                    <% }else{ %>
                    <li class="cart_bg">
                        <div class="check">失效</div>
                        <div class="pic"><a href="<% v.Link %>" target="_blank"><img src="<% v.ImagePath %>" /></a></div>
                        <div class="name">
                            <a href="<% v.Link %>" target="_blank"><% v.ProductName %></a>
                            <% if (v.Note != "" && v.Note != null){ %>
                            <span style="color:red;">订制标语：<% v.Note %></span><br />
                            <% }if (v.CanUseCoupon!=1){ %>
                            <img src="~/Content/cart_files/image/none_ico01_e07a7dcc.gif" alt="不可用券" />
                            <% }if (v.IsToDayDelivery){ %>
                            <img src="~/Content/cart_files/image/today_a8f9ba72.gif" alt="今夜达" />
                            <% } %>
                        </div>
                        <div class="price c_none"><% v.Price.toFixed(2) %></div>
                        <div class="c_quantity"><p><a data-type="minus" data-producttype="0" data-productid="<% v.ProductSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_03_0c4d2417.gif" width="15" height="15" /></a></p><p class="mt0"><input data-type="input" data-producttype="0" data-productid="<% v.ProductSysNo %>" data-productvalue="<% v.Quantity %>" type="text" class="textgt_n" value="<% v.Quantity %>" maxlength="3" /></p><p><a data-type="add" data-producttype="0" data-productid="<% v.ProductSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_04_0e745786.gif" width="15" height="15" /></a></p></div>
                        <div class="subtotal c_none"><% (v.Price * v.Quantity).toFixed(2) %></div>
                        <div class="distribution c_red"><% v.InventoryMsg %></div>
                        <div class="operating"><a data-type="AddWishs" productsysno="<% v.ProductSysNo %>" hidefocus="true" href="javascript:;">收藏</a><br /><a class="mt5" data-type="del" data-producttype="0" data-productid="<% v.ProductSysNo %>" hidefocus="true" href="javascript:;">删除</a></div>
                    </li>
                    <% }});} %>
                    <% if (this.SingleList.length > 0){ %>
                    <% $.each(this.SingleList,function(k,v){ %>
                    <% if (v.Product.IsCanDelivery){ %>
                    <li>
                        <div class="check"><input type="checkbox" boxtype="p" data-producttype="0" data-productid="<% v.Product.ProductSysNo %>" /><% v.Product.Check==1?"Checked='checked'":"" %> ></div>
                        <div class="pic"><a href="<% v.Product.Link %>" target="_blank"><img src="<% v.Product.ImagePath %> " /></a></div>
                        <div class="name">
                            <a href="<% v.Product.Link %>" target="_blank"><% v.Product.ProductName %></a>
                            <% if (v.Product.Note){ %>
                            <span style="color:red;">订制标语：<% v.Product.Note %></span>
                            <% }if (v.Product.CanUseCoupon!=1){ %>
                            <img src="~/Content/cart_files/image/none_ico01_e07a7dcc.gif" alt="不可用券" />
                            <% }if (v.Product.IsToDayDelivery){ %>
                            <img src="~/Content/cart_files/image/today_a8f9ba72.gif" alt="今夜达" />
                            <% } %>
                        </div>
                        <div class="price"><% v.Product.Price.toFixed(2) %></div>
                        <div class="c_quantity"><p><a data-type="minus" data-producttype="0" data-productid="<% v.Product.ProductSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_03_0c4d2417.gif" width="15" height="15" /></a></p><p class="mt0"><input data-type="input" data-producttype="0" data-productid="<% v.Product.ProductSysNo %>" data-productvalue="<% v.Product.Quantity %>" type="text" class="textgt_n" value="<% v.Product.Quantity %>" maxlength="3" /></p><p><a data-type="add" data-producttype="0" data-productid="<% v.Product.ProductSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_04_0e745786.gif" width="15" height="15" /></a></p></div>
                        <div class="subtotal"><% (v.Product.Price * v.Product.Quantity).toFixed(2) %></div>
                        <div class="distribution"><% v.Product.InventoryMsg %></div>
                        <div class="operating"><a data-type="AddWishs" productsysno="<% v.Product.ProductSysNo %>" hidefocus="true" href="javascript:;">收藏</a><br /><a class="mt5" data-type="del" data-producttype="0" data-productid="<% v.Product.ProductSysNo %>" hidefocus="true" href="javascript:;">删除</a></div>
                        <% if (v.HitBaseList.length>0 ){ %>
                        <div class="gifts">
                            <% $.each(v.HitBaseList,function(k1,v1){ %>
                            <% if (v1.HitType == 1){ %>
                            <dl> <% "[" + v1.PromotionsTypeName + "] " + v1.PromotionsWord +"，已减" + v1.PromotionAmt * v1.HitTimes %>元</dl>
                            <% }else{ %>
                            <dl style="position: relative;">
                                <dt>
                                    <% if ((v1.IsGift || v1.IsAddPrice) && !v1.IsAllGift){ %>
                                    <a href="javascript:void(0)" data-type="ganda" promotion-type="s" promotion-num="<% k %>" promotion-num2="<% k1 %>" promotion-t="<% v1.IsGift?1:(v1.IsAddPrice?2:0) %>">
                                        <% "[" + v1.PromotionsTypeName + "] " + v1.PromotionsWord %>
                                        <span>
                                            <% if(v1.SelectGiftNum > 0){  %> ,已选择
                                            <% $.each(v1.HitGift,function(k2,v2){ %>
                                            <% if(v2.IsSelect == 1){ %>
                                            <font><% v2.ProductName %> x <% v2.Quantity %></font>
                                            <% }}); }%>
                                        </span>
                                    </a>
                                    <% }else{ %>
                                    <% "[" + v1.PromotionsTypeName + "] " + v1.PromotionsWord %>
                                    <% if(v1.SelectGiftNum > 0||v1.IsAllGift){ %> ,已选择
                                    <% $.each(v1.HitGift,function(k2,v2){ %>
                                    <% if (v2.IsSelect == 1){ %>
                                    <font><% v2.ProductName %> x <% v2.Quantity %></font>
                                    <% }else if(v2.IsSelect == 0 && v2.IsAllGift){ %>
                                    <font><% v2.ProductName %>(<% v2.InventoryMsg %>) x <% v2.Quantity %></font>
                                    <% }});}} %>
                                </dt>
                            </dl>
                            <% }}); %>
                        </div>
                        <% } %>
                    </li>
                    <% }else{ %>
                    <li class="cart_bg">
                        <div class="check">失效</div>
                        <div class="pic"><a href="<% v.Product.Link %>" target="_blank"><img src="<% v.Product.ImagePath %>" /></a></div>
                        <div class="name">
                            <a href="<% v.Product.Link %>" target="_blank"><% v.Product.ProductName %></a>
                            <% if (v.Product.Note){ %>
                            <span style="color:red;">订制标语：<% v.Product.Note %></span>
                            <% }if (v.Product.CanUseCoupon!=1){ %>
                            <img src="~/Content/cart_files/none_ico01_e07a7dcc.gif" alt="不可用券" />
                            <% }if (v.Product.IsToDayDelivery){ %>
                            <img src="~/Content/cart_files/today_a8f9ba72.gif" alt="今夜达" />
                            <% } %>
                        </div>
                        <div class="price c_none"><% v.Product.Price.toFixed(2) %></div>
                        <div class="c_quantity"><p><a data-type="minus" data-producttype="0" data-productid="<% v.Product.ProductSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_03_0c4d2417.gif" width="15" height="15" /></a></p><p class="mt0"><input data-type="input" data-producttype="0" data-productid="<% v.Product.ProductSysNo %>" data-productvalue="<% v.Product.Quantity %>" type="text" class="textgt_n" value="<% v.Product.Quantity %>" maxlength="3" /></p><p><a data-type="add" data-producttype="0" data-productid="<% v.Product.ProductSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_04_0e745786.gif" width="15" height="15" /></a></p></div>
                        <div class="subtotal c_none"><% (v.Product.Price * v.Product.Quantity).toFixed(2) %></div>
                        <div class="distribution c_red"><% v.Product.InventoryMsg %></div>
                        <div class="operating"><a data-type="AddWishs" productsysno="<% v.Product.ProductSysNo %>" hidefocus="true" href="javascript:;">收藏</a><br /><a class="mt5" data-type="del" data-producttype="0" data-productid="<% v.Product.ProductSysNo %>" hidefocus="true" href="javascript:;">删除</a></div>
                    </li>
                    <% }});} %>
                    <% if (this.SuperCheap.length > 0){ %>
                    <% $.each(this.SuperCheap,function(k,sc){ %>
                    <% if (sc.IsCanDelivery){ %>
                    <li class="c_specials">
                        <div class="check2"><input type="checkbox" boxtype="p" data-producttype="1" data-productid="<% sc.HitBase.PromotionsSysNo %>" /><% sc.Check==1?"Checked='checked'":"" %> /></div>
                        <div class="name2"><a href="<% sc.HitBase.PromotionsUrl %>" target="_blank"><% sc.HitBase.PromotionsWord %></a></div>
                        <div class="price"><% sc.NowAmt.toFixed(2) %><p><% sc.CurrentAmt.toFixed(2) %></p></div>
                        <div class="c_quantity"><p><a data-type="minus" data-producttype="1" data-productid="<% sc.HitBase.PromotionsSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_03_0c4d2417.gif" width="15" height="15" /></a></p><p class="mt0"><input data-type="input" data-producttype="1" data-productid="<% sc.HitBase.PromotionsSysNo %>" data-productvalue="<% sc.HitBase.HitTimes %>" type="text" class="textgt_n" value="<% sc.HitBase.HitTimes %>" maxlength="3" /></p><p><a data-type="add" data-producttype="1" data-productid="<% sc.HitBase.PromotionsSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_04_0e745786.gif" width="15" height="15" /></a></p></div>
                        <div class="subtotal"><% (sc.NowAmt * sc.HitBase.HitTimes).toFixed(2) %></div>
                        <div class="distribution"><% sc.InventoryMsg %></div>
                        <div class="operating"><a class="mt5" data-type="del" data-producttype="1" data-productid="<% sc.HitBase.PromotionsSysNo %>" hidefocus="true" href="javascript:;">删除</a></div>
                    </li>
                    <% $.each(sc.ProductList,function(k1,hp){ %>
                    <li class="<% k1==0?" =":" b0"=b0" %=%>
                        ">
                        <div class="check"></div>
                        <div class="pic"><a href="<% hp.Link %>" target="_blank"><img src="<% hp.ImagePath %>" /></a></div>
                        <div class="name"><a href="<% hp.Link %>" target="_blank"><% hp.ProductName %></a></div>
                        <div class="quantity">×<% hp.Quantity %></div>
                        <div class="price2"><% hp.Price.toFixed(2) %></div>
                    </li>
                    <% }); %>
                    <% }else{ %>
                    <li class="c_specials cart_bg">
                        <div class="check2">失效</div>
                        <div class="name2"><a href="<% sc.HitBase.PromotionsUrl %>" target="_blank"><% sc.HitBase.PromotionsWord %></a></div>
                        <div class="price"><% sc.NowAmt.toFixed(2) %><p><% sc.CurrentAmt.toFixed(2) %></p></div>
                        <div class="c_quantity"><p><a data-type="minus" data-producttype="1" data-productid="<% sc.HitBase.PromotionsSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_03_0c4d2417.gif" width="15" height="15" /></a></p><p class="mt0"><input data-type="input" data-producttype="1" data-productid="<% sc.HitBase.PromotionsSysNo %>" data-productvalue="<% sc.HitBase.HitTimes %>" type="text" class="textgt_n" value="<% sc.HitBase.HitTimes %>" maxlength="3" /></p><p><a data-type="add" data-producttype="1" data-productid="<% sc.HitBase.PromotionsSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_04_0e745786.gif" width="15" height="15" /></a></p></div>
                        <div class="subtotal"><% (sc.NowAmt * sc.HitBase.HitTimes).toFixed(2) %></div>
                        <div class="distribution c_red"><% sc.InventoryMsg %></div>
                        <div class="operating"><a class="mt5" data-type="del" data-producttype="1" data-productid="<% sc.HitBase.PromotionsSysNo %>" hidefocus="true" href="javascript:;">删除</a></div>
                    </li>
                    <% $.each(sc.ProductList,function(k1,hp){ %>
                    <li class="cart_bg">
                        <div class="check"></div>
                        <div class="pic"><a href="<% hp.Link %>" target="_blank"><img src="<% hp.ImagePath %>" /></a></div>
                        <div class="name"><a href="<% hp.Link %>" target="_blank"><% hp.ProductName %></a></div>
                        <div class="quantity">×<% hp.Quantity %></div>
                        <div class="price2"><% hp.Price.toFixed(2) %></div>
                    </li>
                    <% });}});} %>
                    <% if (this.MutiList.length > 0){ %>
                    <% $.each(this.MutiList,function(k,mp){ %>
                    <% if (mp.HitBaseList.length > 0){ %>
                    <% $.each(mp.HitBaseList,function(k1,hb){ %>
                    <li class="p0 b0">
                        <div class="cart_bulletin" style="<% k1==0?" border-bottom:0px":(k1=border-bottom:0px":(k1 =(mp.HitBaseList.length-1)?"border-top:0px":"border:0px") %=%>
                            " >
                            <dl>
                                <dt>
                                    <p><% hb.PromotionsTypeName %></p>
                                </dt>
                                <dd>
                                    <% if (hb.HitType == 1){ %>
                                    <div class="fl"> <% hb.PromotionsWord +"，已减"+ hb.PromotionAmt %>元</div>
                                    <% }else{ %>
                                    <div class="fl"> <% hb.PromotionsWord %></div>
                                    <% } %>
                                    <% if (hb.IsGift || hb.IsAddPrice){ %>
                                    <% if (hb.IsAddPrice){ %>
                                    <div class="cart_btn">
                                        <div class="btn_on"><a href="javascript:void(0)" data-type="ganda" promotion-type="mh" promotion-num="<% k %>" promotion-num2="<% k1 %>" promotion-t="<% hb.IsGift?1:(hb.IsAddPrice?2:0) %>"><% hb.SelectGiftNum > 0 ? "重新换购" : "换购" %></a></div>
                                    </div>
                                    <% } %>
                                    <% if (hb.IsGift && !hb.IsAllGift){ %>
                                    <div class="cart_btn">
                                        <div class="btn_on"><a href="javascript:void(0)" data-type="ganda" promotion-type="mh" promotion-num="<% k %>" promotion-num2="<% k1 %>" promotion-t="<% hb.IsGift?1:(hb.IsAddPrice?2:0) %>"><% hb.SelectGiftNum > 0 ? "重新选择" : "选择" %></a></div>
                                    </div>
                                    <% }} %>
                                </dd>
                            </dl>
                        </div>
                    </li>
                    <% if (hb.HitGift.length > 0){ %>
                    <li class="gifts_all" style="display:<% (hb.SelectGiftNum > 0||hb.IsAllGift)?" block":"none"=block":"none" %=%>
                        ">
                        <% "[" + hb.PromotionsTypeName + "] " %>
                        <span>
                            <% if (hb.SelectGiftNum > 0 || hb.IsAllGift){ %>已选择
                            <% $.each(hb.HitGift,function(k2,hg){ %>
                            <% if (hg.IsSelect == 1){ %>
                            <font><% hg.ProductName %> x <% hg.Quantity %> </font>
                            <% }else if (hg.IsSelect == 0 && hb.IsAllGift){ %>
                            <font><% hg.ProductName %>(<% hg.InventoryMsg %>) x <% hg.Quantity %></font>
                            <% }});} %>
                        </span>
                    </li>
                    <% }}); }%>
                    <% if (mp.ProductList.length > 0){ %>
                    <% $.each(mp.ProductList,function(k1,sp){ %>
                    <% if (sp.Product.IsCanDelivery){ %>
                    <li>
                        <div class="check"><input type="checkbox" boxtype="p" data-producttype="0" data-productid="<% sp.Product.ProductSysNo %>" /><% sp.Product.Check==1?"Checked='checked'":"" %> ></div>
                        <div class="pic"><a href="<% sp.Product.Link %>" target="_blank"><img src="<% sp.Product.ImagePath %>" /></a></div>
                        <div class="name">
                            <a href="<% sp.Product.Link %>" target="_blank"><% sp.Product.ProductName %></a>
                            <% if (sp.Product.Note){ %>
                            <span style="color:red;">订制标语：<% sp.Product.Note %></span>
                            <% }if (sp.Product.CanUseCoupon!=1){ %>
                            <img src="~/Content/cart_files/none_ico01_e07a7dcc.gif" alt="不可用券" />
                            <% }if (sp.Product.IsToDayDelivery){ %>
                            <img src="~/Content/cart_files/today_a8f9ba72.gif" alt="今夜达" />
                            <% } %>
                        </div>
                        <div class="price"><% sp.Product.Price.toFixed(2) %></div>
                        <div class="c_quantity"><p><a data-type="minus" data-producttype="0" data-productid="<% sp.Product.ProductSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_03_0c4d2417.gif" width="15" height="15" /></a></p><p class="mt0"><input data-type="input" data-producttype="0" data-productid="<% sp.Product.ProductSysNo %>" data-productvalue="<% sp.Product.Quantity %>" type="text" class="textgt_n" value="<% sp.Product.Quantity %>" maxlength="3" /></p><p><a data-type="add" data-producttype="0" data-productid="<% sp.Product.ProductSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_04_0e745786.gif" width="15" height="15" /></a></p></div>
                        <div class="subtotal"><% (sp.Product.Price * sp.Product.Quantity).toFixed(2) %></div>
                        <div class="distribution"><% sp.Product.InventoryMsg %></div>
                        <div class="operating"><a data-type="AddWishs" productsysno="<% sp.Product.ProductSysNo %>" hidefocus="true" href="javascript:;">收藏</a><br /><a class="mt5" data-type="del" data-producttype="0" data-productid="<% sp.Product.ProductSysNo %>" hidefocus="true" href="javascript:;">删除</a></div>
                        <% if (sp.HitBaseList.length > 0){ %>
                        <div class="gifts">
                            <% $.each(sp.HitBaseList,function(k2,hb){ %>
                            <% if (hb.HitType == 1){ %>
                            <dl><% "[" + hb.PromotionsTypeName + "] " + hb.PromotionsWord +"，已减"+ hb.PromotionAmt*hb.HitTimes %>元</dl>
                            <% }else{ %>
                            <dl style="position: relative;">
                                <dt>
                                    <% if ((hb.IsGift || hb.IsAddPrice) && !hb.IsAllGift){ %>
                                    <a href="javascript:void(0)" data-type="ganda" promotion-type="md" promotion-num="<% k %>" promotion-num2="<% k1 %>" promotion-num3="<% k2 %>" promotion-t="<% hb.IsGift?1:(hb.IsAddPrice?2:0) %>">
                                        <% "[" + hb.PromotionsTypeName + "] " + hb.PromotionsWord %>
                                        <span>
                                            <% if (hb.SelectGiftNum > 0){  %>,已选择
                                            <% $.each(hb.HitGift,function(k3,hg){ %>
                                            <% if (hg.IsSelect == 1){ %>
                                            <font><% hg.ProductName %> x <% hg.Quantity %></font>
                                            <% }});} %>
                                        </span>
                                    </a>
                                    <% }else{ %> <%"[" + hb.PromotionsTypeName + "] " + hb.PromotionsWord %>
                                    <% if (hb.SelectGiftNum > 0 || hb.IsAllGift){ %>,已选择
                                    <% $.each(hb.HitGift,function(k3,hg){ %>
                                    <% if (hg.IsSelect == 1){ %>
                                    <font><% hg.ProductName %> x <% hg.Quantity %></font>
                                    <% }else if (hg.IsSelect == 0 && hb.IsAllGift){ %>
                                    <font><% hg.ProductName %>(<% hg.InventoryMsg %>) x <% hg.Quantity %></font>
                                    <% }});}} %>
                                </dt>
                            </dl>

                            <% }}); %>
                        </div>
                        <% } %>
                    </li>
                    <% }else{ %>
                    <li class="cart_bg">
                        <div class="check">失效</div>
                        <div class="pic"><a href="<% sp.Product.Link %>" target="_blank"><img src="<% sp.Product.ImagePath %>" /></a></div>
                        <div class="name">
                            <a href="<% sp.Product.Link %>" target="_blank"><% sp.Product.ProductName %></a>
                            <% if (sp.Product.Note){ %>
                            <span style="color:red;">订制标语：<% sp.Product.Note %></span>
                            <% }if (sp.Product.CanUseCoupon!=1){ %>
                            <img src="~/Content/cart_files/image/none_ico01_e07a7dcc.gif" alt="不可用券" />
                            <% }if (sp.Product.IsToDayDelivery){ %>
                            <img src="~/Content/cart_files/image/today_a8f9ba72.gif" alt="今夜达" />
                            <% } %>
                        </div>
                        <div class="price c_none"><% sp.Product.Price.toFixed(2) %></div>
                        <div class="c_quantity"><p><a data-type="minus" data-producttype="0" data-productid="<% sp.Product.ProductSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_03_0c4d2417.gif" width="15" height="15" /></a></p><p class="mt0"><input data-type="input" data-producttype="0" data-productid="<% sp.Product.ProductSysNo %>" data-productvalue="<% sp.Product.Quantity %>" type="text" class="textgt_n" value="<% sp.Product.Quantity %>" maxlength="3" /></p><p><a data-type="add" data-producttype="0" data-productid="<% sp.Product.ProductSysNo %>" href="javascript:void(0)"><img src="~/Content/cart_files/image/dey_04_0e745786.gif" width="15" height="15" /></a></p></div>
                        <div class="subtotal c_none"><% (sp.Product.Price * sp.Product.Quantity).toFixed(2) %></div>
                        <div class="distribution c_red"><% sp.Product.InventoryMsg %></div>
                        <div class="operating"><a data-type="AddWishs" productsysno="<% sp.Product.ProductSysNo %>" hidefocus="true" href="javascript:;">收藏</a><br /><a class="mt5" data-type="del" data-producttype="0" data-productid="<% sp.Product.ProductSysNo %>" hidefocus="true" href="javascript:;">删除</a></div>
                    </li>
                    <% }}); } %>
                    <%  });} %>
                </ul>
            </div>
            <div class="hzcart" id="CartTotalamt">
                <div class="del_all">
                    <div class="check">
                        <input type="checkbox" name="proselectall" boxtype="a" /><% this.CheckAll==1?"Checked='checked'":"" %> />
                    </div>
                    <a href="javascript:;" hidefocus="true" id="selectall" class="select">全选</a><a href="javascript:void(0);" hidefocus="true" data-type="delproducts" class="delete"><img src="~/Content/cart_files/image/dele.gif" width="13" height="15" /></a>
                </div>
                <div class="details">
                    <span>商品金额：<font><% (this.TotalAmt + this.DisCountAmt + this.TotalGiftAmt).toFixed(2) %></font>元</span>
                    <% if (this.DisCountAmt > 0){ %>
                    <span>促销抵扣金额：<font><% this.DisCountAmt.toFixed(2) %></font>元</span>
                    <% } %>
                </div>
                <div class="all_price">
                    已选择 <% this.TotalCount + this.TotalGiftCount %> 件商品，金额 = <span><% (this.TotalAmt + this.TotalGiftAmt).toFixed(2) %></span>
                    <% if (this.CustomerRank == 21){ %>
                    <span style="float:right;margin:3px 0px 0px 5px;"><img width="85" height="20" alt="" src="~/Content/cart_files/image/gat_ico.gif" /></span>
                    <% } %>
                </div>
                <% if (this.MinPrice > this.TotalAmt + this.TotalGiftAmt){ %>
                <div class="tscart">您当前选择了<font><% this.AreaName %>站</font>，距离起送金额还有 <% (this.MinPrice - this.TotalAmt - this.TotalGiftAmt).toFixed(2) %>元</div>
                <% } %>
                <% if (this.IceBagList.length > 0){ %>

                <div class="fresh"><a href="javascript:void(0);" onclick="toggleBags()">商品中含生鲜商品，若您的收货地点不方便冷藏，建议购买冷藏辅助商品保证商品品质。</a></div>
                <div class="ice" id="icebags" style="display: none;">
                    <div>
                        <a href="javascript:void(0);" onclick="toggleBags()">
                            <img src="~/Content/cart_files/image/close_03.gif" width="16" height="16" />
                        </a>
                    </div>
                    <ul>
                        <% $.each(this.IceBagList,function(k,sp){ %>
                        <li>
                            <p class="ice_pic">
                                <a href="<% sp.Link %>" target="_blank" title="<% sp.ProductName %>">
                                    <img src="<% sp.ImagePath %>" />
                                </a>
                            </p>
                            <p class="ice_name">
                                <a href="<% sp.Link %>" target="_blank" title="<% sp.ProductName %>" style="height: 40px;"><% sp.ProductName %></a>
                            </p>
                            <p class="ice_price"><% sp.Price %></p>
                            <p class="ice_check">
                                <input type="checkbox" name="icebag_<% sp.ProductSysNo %>" id="icebag_<% sp.ProductSysNo %>" onclick="getIceBags(<% sp.ProductSysNo %>)" /><% sp.Check %> />
                            </p>
                        </li>
                        <% }); %>
                    </ul>
                </div>
                <% } %>
                <div class="butn">
                    <input type="button" class="fr butn19" data-type="Pay" title="去结算" /><a class="continue" href="javascript:history.back(-1);window.location.href='https://www.benlai.com'">继续购物</a>
                </div>
            </div>
            <% }else{ %>
            <div class="cart_none"><img src="cart_files/image/cart_none.png" /><p>您还没有购买过商品，<a href="/">去逛逛吧</a></p></div>
            <div class="clear"></div>
            <% } %>
            <div style="display:none;" alerttype="a" class="cart_pop cartpromotionchose"></div>
            <div style="display:none;" alerttype="g" class="cart_pop2 cartpromotionchose"></div>
            <div alerttype="coudan" class="cart_pop cart_pop_all" style="display:none;z-index:999999; top:50%; left:50%; margin-top:-300px; margin-left:-432px;"></div>
            <div class="my_cart_pop" alerttype="ChildTan" style="display:none; position:fixed; z-index:999999; top:50%; left:50%; margin-top:-120px; margin-left:-220px;"></div>
        </textarea>

        <textarea style="display: none" id="AddPlusContent">
            <div class="close_pop"><a href="javascript:void(0);" data-type="AddPlusCannel"><img src="cart_files/image/city_close_addb60d8.png" width="37" height="37" alt="" /></a></div>
            <ul class="pop_tit">选购商品明细</ul>
            <ul class="pop_tab" data-type="AppPlusStart" start="0">
                <div class="pop_arrow_l" data-type="AppPlusMoveLeft" style="display:none"><a href="javascript:void(0)"><img src="cart_files/image/cart_arrow_l_761adb57.gif" width="27" height="46" /></a></div>
                <div class="pop_arrow_r" data-type="AppPlusMoveRight" style="display:<% this.HitGift.length > 4?" block":"none"=block":"none" %=%>"><a href="javascript:void(0)"><img src="cart_files/image/cart_arrow_r_061e022d.gif" width="27" height="46" /></a></div>
                <% $.each(this.HitGift,function(k1,v1){ if (v1.IsCanDelivery){ %>
                <dl data-type="AddPlusProducts" data-no="<% k1 %>" productid="<% v1.ProductSysNo %>" qty="<% v1.Quantity %>" price="<% v1.Price %>">
                    <div class="cp_pic">
                        <% if (v1.InventoryMsg != "有货"){ %>
                        <div class="cp_ico"><% v1.InventoryMsg %></div>
                        <% } %>
                        <a href="<% v1.Link %>" target="_blank"><img src="<% v1.ImagePath %>" /></a>
                    </div>
                    <p class="cp_name"><a href="<% v1.Link %>" target="_blank"><% v1.ProductName %></a></p>
                    <p class="cp_price">
                        <span><% v1.OldPrice.toFixed(2) %></span><br />
                        <% v1.Price.toFixed(2) %>
                    </p>
                    <% if (v1.InventoryMsg == "有货"){ if (v1.IsRepet){ %>
                    <div class="c_quantity"><p><a data-type="AddPlusMinus" href="javascript:void(0)"><img src="cart_files/image/dey_03_0c4d2417.gif" width="15" height="15" /></a></p><p class="mt0"><input type="text" class="textgt_n" data-type="AddPlusInput" price="<% v1.Price %>" productid="<% v1.ProductSysNo %>" value="<% v1.Quantity %>" /></p><p><a data-type="AddPlusAdd" href="javascript:void(0)"><img src="cart_files/image/dey_04_0e745786.gif" width="15" height="15" /></a></p></div>
                    <% }else{ %>
                    <div class="cp_receive"><input type="checkbox" price="<% v1.Price %>" productid="<% v1.ProductSysNo %>" boxtype="h" name="checkbox" /><% v1.IsSelect==1?"Checked='checked'":"" %> />换购</div>
                    <% }} %>
                </dl>
                <% }else{ %>
                <dl productid="<% v1.ProductSysNo %>" qty="0" price="0">
                    <div class="cp_pic">
                        <div class="cp_ico"><% v1.InventoryMsg %></div>
                        <a href="<% v1.Link %>" target="_blank"><img src="<% v1.ImagePath %>" /></a>
                    </div>
                    <p class="cp_name2"><a href="<% v1.Link %>" target="_blank"><% v1.ProductName %></a></p>
                </dl>
                <% }}); %>
            </ul>
            <ul class="cart_buy">
                <a href="javascript:void(0)" data-type="AddPlusCannel" class="pop_btn_n02">取消</a>
                <a href="javascript:void(0)" selecttype="AddPlusBtnOk" class="pop_btn_n">确定</a>
                <div class="pop_total">已选择<font data-type="ShowAddPlusNum"><% this.SelectGiftNum %></font>件商品，金额（不含运费）= <span data-type="ShowAddPlusAmt">¥ <% this.SelectGiftAmt %></span></div>
            </ul>
        </textarea>

        <textarea style="display: none" id="GiftContent">
            <ul class="pop_tit">赠品明细</ul>
            <ul class="mt10 mb10">
                <% $.each( this.HitGift,function(ke,v2){ %>
                <dl>
                    <div class="cp_check">
                        <% if(v2.InventoryMsg=="有货"){ %>
                        <input type="checkbox" productid="<% v2.ProductSysNo %>" qty="<% v2.Quantity %>" boxtype="g" name="checkbox" /><% v2.IsSelect==1?"Checked='checked'":"" %> />
                        <% } %>
                    </div>
                    <div class="cp_name"><% v2.ProductName %></div>
                    <div class="cp_quantity">×<% v2.Quantity %></div>
                    <div class="cp_operating"><span>(<% v2.InventoryMsg=="无货"?"已赠完":v2.InventoryMsg %>)</span></div>
                </dl>
                <% }); %>
            </ul>
            <ul class="cart_buy">
                <a href="javascript:void(0)" data-type="GiftCannel" class="pop_btn_n02">取消</a>
                <a href="javascript:void(0)" selecttype="GiftBtnOk" class="pop_btn_n">确定</a>
            </ul>
        </textarea>
        <!--凑单弹窗-->
        <textarea id="CoudanContent" style="display: none">
            <div class="close_pop"><a href="javascript:void(0);" data-type="CancelCoudan"><img src="cart_files/image/city_close_addb60d8.png" width="37" height="37" alt="" /></a></div>
            <ul class="pop_tit" data-type="coudanTitle"></ul>
            <ul class="pop_tab">
                <%if(this.PageIndex!=1 && this.TotalPage>1){ %>
                <div data-type="cdLeft" class="pop_arrow_l"><a href="javascript:void(0);"><img src="cart_files/image/cart_arrow_l_761adb57.gif" width="27" height="46" /></a></div>
                <% } %>
                <%if(this.TotalPage > this.PageIndex) { %>
                <div data-type="cdRight" class="pop_arrow_r"><a href="javascript:void(0);"><img src="cart_files/image/cart_arrow_r_061e022d.gif" width="27" height="46" /></a></div>
                <% } %>
                <% if(this.List.length > 0){ %>
                <% $.each(this.List,function(index,Value){ %>
                <dl>
                    <div class="cp_pic">
                        <% if(!Value.IsCanDelivery) { %>
                        <div class="cp_ico">无法送达</div>
                        <% } else if(!Value.CanSale){ %>
                        <div class="cp_ico">已领完</div>
                        <% } %>
                        <a href="<% Value.Link %>"><img src="<% Value.ImageLink %>" /></a>
                    </div>
                    <p class="<% (Value.IsCanDelivery && Value.CanSale)?'cp_name':'cp_name2'%>" title="<% Value.BriefNamePromotionWord %>"><a href="<% Value.Link %>"><% Value.BriefNamePromotionWord %></a></p>
                    <p class="cp_price">
                        <% if(Value.OldPrice>0) { %>
                        <span>￥<% Value.OldPrice %></span><br />
                        <% } else { %>
                        <span></span><br />
                        <% } %>
                        ￥<% Value.Price %>
                    </p>
                    <% if(Value.IsCanDelivery&&Value.CanSale){%>
                    <div class="c_quantity">
                        <p><a data-type="couMinus" href="javascript:void(0);"><img src="cart_files/image/dey_03_0c4d2417.gif" width="15" height="15" /></a></p><p class="mt0">
                            <input data-type="input1" type="text" sysno="<% Value.SysNo %>" value="0" class="textgt_n" price='<% Value.Price %>' />
                        </p><p><a data-type="couAdd" href="javascript:void(0);"><img src="cart_files/image/dey_04_0e745786.gif" width="15" height="15" /></a></p>
                    </div>
                    <% } %>
                </dl>
                <% }); %>
                <% } %>
            </ul>
            <ul class="cart_buy">
                <a href="javascript:void(0);" data-type="CancelCoudan" class="pop_btn_n02">取消</a>
                <a href="javascript:void(0);" data-type="ConfirmCoudan" class="pop_btn_n">确定</a>
                <div class="pop_total">已选择<font>0</font>件商品，金额（不含运费）= <span>¥ 0</span></div>
            </ul>

        </textarea>

        <textarea id="OverSeaTip" style="display: none">
            <a href="javascript:void(0)" data-type="ChildClose" class="close"></a>
            <div class="pop_list">
                <dl>
                    <dt>温馨提示</dt>
                    <dd>
                        <% $.each( this.WinContentList,function(key,v){ %>
                        <p><% v.SelectName %></p>
                        <% }); %>
                    </dd>
                </dl>
            </div>

        </textarea>

        <textarea id="SplitOrderTip" style="display: none">
            <a href="javascript:void(0)" data-type="ChildClose" class="close"></a>
            <div class="pop_select">
                <dl>
                    <dt>您去结算的商品包含：跨境购商品，需和其他商品分开结算。</dt>
                    <% $.each( this.WinContentList,function(key,v){ var n1 = v.SelectName.split(' ')[0];var n2 = v.SelectName.split(' ')[1]; %>
                    <dd>
                        <a href="javascript:void(0)" data-id="<% v.SelectNo %>" class="<% key==0?'on':'' %>"></a>
                        <p><% n1 %></p><em><% n2 %></em>
                    </dd>
                    <% }); %>
                </dl>
            </div>
            <div class="btn"><a href="javascript:void(0)" data-type="SelectSplitOrder" class="save2">去结算</a><a href="javascript:void(0)" data-type="ChildClose" class="cancel">返回购物车</a></div>
        </textarea>
    </div>


    <!--底部 开始-->
    <div class="blank25"></div>
    <div class="foot15" id="footers">
        <div class="bar">
            <div class="explain">
                <dl>
                    <dt class="ico01"></dt>
                    <dd><span>18小时低温</span>全程冷链配送</dd>
                </dl>
                <dl>
                    <dt class="ico02"></dt>
                    <dd><span>0时差基地直供</span>农田到餐桌</dd>
                </dl>
                <dl>
                    <dt class="ico03"></dt>
                    <dd><span>43项检测</span>安全无农残</dd>
                </dl>
                <dl>
                    <dt class="ico04"></dt>
                    <dd><span>7*24小时营业</span>全年无休</dd>
                </dl>
                <dl class="m0">
                    <dt class="ico05"></dt>
                    <dd><span id="SpanFreeSecShipPrice">满60免运费</span>今日下单次日送达</dd>
                </dl>
            </div>
        </div>
        <div class="footert">
            <dl>
                <dt class="xs">新手指南</dt>
                <dd><a href="/help-2.html">购物流程</a></dd>
                <dd><a href="/help-3.html">会员政策</a></dd>
                <dd><a href="/help-7.html">联系客服</a></dd>
                <dd><a href="/help-4.html">积分政策</a></dd>
                <dd><a href="/help-30.html">加入我们</a></dd>
            </dl>
            <dl>
                <dt class="ps">配送方式</dt>
                <dd><a href="/help-9.html">全程冷链</a></dd>
                <dd><a href="/help-10.html">配送时间</a></dd>
                <dd><a href="/help-11.html">配送范围</a></dd>
                <dd><a href="/help-12.html">配送收费标准</a></dd>
                <dd><a href="/help-31.html">关于我们</a></dd>
            </dl>
            <dl>
                <dt class="zf">支付方式</dt>

                <dd><a href="/help-14.html">在线支付</a></dd>
                <dd><a href="/help-15.html">其他支付方式</a></dd>
                <dd><a href="/help-21.html">优惠券使用</a></dd>
                <dd><a href="/help-39.html">礼金卡使用</a></dd>
            </dl>
            <dl>
                <dt class="sh">售后服务</dt>
                <dd><a href="/help-17.html">验货与拒收政策</a></dd>
                <dd><a href="/help-18.html">退换货政策</a></dd>
                <dd><a href="/help-19.html">退换货流程</a></dd>
                <dd><a href="/help-25.html">退款流程</a></dd>
                <dd><a href="/help-20.html">发票制度</a></dd>
            </dl>
        </div>
        <div class="info">
            <dl>
                <dt><img src="~/Content/cart_files/image/tel_f3c65362.gif" width="17" height="13" />客服热线：4008-000-917（周一至周日 8:00-20:00）</dt>
                <dd>
                    <em><a href="/help-30.html">加入我们</a></em>
                    <em><a href="/help-26.html">联系我们</a></em>
                    <em><a href="/help-22.html">关于我们</a></em>
                    <em><a href="/help-33.html">友情链接</a></em>
                    <em><a href="/hotwords/1.html">品牌食材</a></em>
                    <em><a href="/help-23.html">食品流通许可证</a></em>
                    <em class="b0"><a href="/help-24.html">营业执照</a></em>
                </dd>
                <dd>
                    <em><a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010502022386"><img src="~/Content/cart_files/image/beian_d0289dc0.png" />京公网安备 11010502022386号</a></em>
                    <em class="b0"><a href="http://www.miitbeian.gov.cn/" target="_blank">京ICP证120338号</a></em>

                </dd>
                <dd class="copy">&copy; 2012-2016 Benlai.com. All Rights Reserved. 北京本来工坊科技有限公司</dd>
                <dd><a href="https://ss.knet.cn/verifyseal.dll?sn=e12111611010037041000000&amp;ct=df&amp;a=1&amp;pa=870245" target="_blank" style="display: inline-block; position: relative; width: 102px; height: 37px;" id="urlknet" rel="nofollow"><img src="cart_files/image/verifyseal.jpg" alt="可信网站" name="CNNIC_seal" style="left: -13px; position: absolute; border: none; width:102px;height:37px" oncontextmenu="return false;" onclick="CNNIC_change('urlknet')" ;="" /></a></dd>
            </dl>
        </div>
        <!--alert弹出窗 开始-->
        <div class="pop_new" id="showError" style="display: none; top: 40%">
            <div class="pop_close">
                <a id="closeAlertSp" data-type="closeAlter" onclick="CloseAlter()" style="cursor: pointer">
                    <img src="cart_files/image/pop_close_533af364.png" width="37" height="37" class="ie6png" />
                </a>
            </div>
            <div class="pop_box" style="background-color: rgb(255, 255, 255);">
                <ul class="title" id="title">- 系统提示 -</ul>
                <ul class="detail" id="ErrorShow"></ul>
                <ul class="clearing" id="clearing"></ul>
                <ul class="gray" id="gray"></ul>
            </div>
        </div>
        <!--alert弹出窗 结束-->
        <!--城市-->

        <div class="pop_city_n" id="pop_city" style="display: none; z-index: 9998; position: fixed; top: 50%; left: 50%; margin-left: -400px !important; margin-top: -200px !important; margin-top: 0px; _position: absolute; _top: expression(eval(document.compatMode && document.compatMode=='CSS1Compat') ? documentElement.scrollTop + (document.documentElement.clientHeight- this.offsetHeight)/2:document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);"></div>
        <!--城市-->

        <div id="showLogin" class="pop_win" style="display: none; background-color: #fff">
            <div id="LoginTmpl" style="display: none">
            </div>
            <div id="RegisterTmpl" style="display: none">
            </div>
        </div>
        <div id="baifendian" style="display: none">
        </div>
        <!--右侧浮动-->
        <div id="goTop">
            <a href="javascript:;" hidefocus="true" id="go_top" title="回到顶部" style="display: none;"></a>
            <a href="/Home/cart" id="right_cart" class="cart_buy" title="前往购物车">0</a>
            <a href="javascript:;" class="service" data-type="easemob">&nbsp;</a>
            <a id="two_code" href="javascript:;" hidefocus="true" class="two_code" title="点击查看二维码">&nbsp;</a>

        </div>
        <div class="pop_cart">
            <div class="pop_buy">
                <ul id="item_added"></ul>
            </div>
        </div>
        <div style="display: none" id="twocodeParent">
            <div class="pop_code">
                <div class="code_con">
                    <span>
                        <img src="cart_files/image/code_blog_0e5b9984.gif" width="186" height="186" alt="本来微博 二维码" />
                    </span>
                    <b>本来微博 二维码</b>
                </div>
            </div>
            <div class="pop_code2">
                <div class="code_con">
                    <span>
                        <img src="cart_files/image/code_weixin_65412aa1.gif" width="186" height="186" alt="本来微信 二维码" />
                    </span>
                    <b>本来微信 二维码</b>
                </div>
            </div>

            <div class="pop_code3">
                <div class="code_con">
                    <span>
                        <img src="cart_files/image/App_QR_Code_3de39ad3.png" width="186" height="186" alt="扫描下载客户端" />
                    </span>
                    <b>扫描下载客户端</b>
                </div>
            </div>
        </div>
        <!--右侧浮动-->
        <!--遮罩层-->
        <div id="greybackground" style="display: block; position: absolute; top: 0%; left: 0%; background-color: black; z-index: 9000; opacity: 0.5;"></div>
        <!--遮罩层-->


        <script type="text/javascript" async=async>
            window.easemobim = window.easemobim || {};
            easemobim.config = {
                appKey: '',
                to: '',
                user: {
                    username: '',
                    password: '',
                    token: ''
                },
                tenantId: '',
                domain: 'https://kefu.easemob.com',
                path: '/Content/kefu-webim-plugin43.5',
                staticPath: '/Content/kefu-webim-plugin43.5/static',
                visitor: {
                    trueName: '',
                    qq: '',
                    phone: '',
                    companyName: '',
                    userNickname: '',
                    description: '',
                    email: ''
                },
                hide: true,
                autoConnect: true,
                ticket: true,
                satisfaction: true,
                resources: true,
            };
        </script>

        <script id="easemobjs" async='async'></script>

        <script type="text/javascript" async=async>
            function loadEasemobConfig() {
                $.ajax({
                    type: "GET",
                    url: "/Easemob/LoadEasemobConfig",
                    data: "",
                    cache: false,
                    success: function(result) {
                        if (AjaxValidate(result)) {
                            if (result.error == "0") {
                                easemobim.config.appKey = result.data.appKey;
                                easemobim.config.to = result.data.to;
                                easemobim.config.tenantId = result.data.tenantId;
                                easemobim.config.domain = result.data.domain;
                                easemobim.config.ticket = result.data.ticket;
                                easemobim.config.satisfaction = result.data.satisfaction;

                                easemobim.config.user.username = result.data.username;
                                easemobim.config.user.token = result.data.token;

                                easemobim.config.visitor.trueName = result.data.trueName;
                                easemobim.config.visitor.phone = result.data.phone;
                                easemobim.config.visitor.userNickname = result.data.userNickname;
                                easemobim.config.visitor.description = result.data.description;
                                easemobim.config.visitor.email = result.data.email;

                                $("[data-type=easemob]")
                                    .click(function() {
                                        easemobim.bind({
                                            tenantId: result.data.tenantId,
                                            dialogWidth: "400px",
                                            emgroup: result.data.emgroup
                                        });
                                    });

                                $("#easemobjs")
                                    .attr("src",
                                        "/Content/kefu-webim-plugin43.5/easemob.js?tenantId=" +
                                        result.data.tenantId +
                                        "&hide=false");
                            }
                        }
                    },
                    error: function() {
                    }
                });
            }

            setTimeout(function() {
                loadEasemobConfig();
            }, 1 * 1000);

        </script>
    </div>


    <!--底部 结束-->
    <!-- Piwik -->
    <script type="text/javascript" async=async>
        var _paq = _paq || [];
        _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
        _paq.push(["setCookieDomain", "*.benlai.com"]);
        _paq.push(["setDomains", ["*.benlai.com"]]);
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
        (function () {
            var u = "//piwik.benlailife.com/";
            _paq.push(['setTrackerUrl', u + 'piwik.php']);
            var website = Number(window.Cookies("WebSiteSysNo").val());
            var piwik_site = 1;
            switch (website) {
                case 1: piwik_site = 3; break;
                case 2: piwik_site = 5; break;
                case 3: piwik_site = 4; break;
                default: break;
            }
            _paq.push(['setSiteId', piwik_site]);
            var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
            g.type = 'text/javascript'; g.async = true; g.defer = true; g.src = u + 'piwik.js'; s.parentNode.insertBefore(g, s);
        })();
    </script>
    <noscript>
        <p><img src="//piwik.benlailife.com/piwik.php?idsite=3" style="border: 0;" alt="" /></p>
    </noscript>
    <!-- End Piwik Code -->


    <script type="text/javascript" async=async>
        var w = window;
        w.FormatCSSPath = BENLAI.Path.CSSPath, w
            .ImageUrl = BENLAI.Path.ImagePath, w.ScriptPath = BENLAI.Path.ScriptPath;
        var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
        document.write(unescape("%3Cscript src='" +
            _bdhmProtocol +
            "hm.baidu.com/h.js%3Fa6b20d1b3b2571f43355b57c2c746eab' async='async' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript" async=async>
        var _mvq = _mvq || [];
        _mvq.push(['$setAccount', 'm-25505-0']);
        _mvq.push(['$logConversion']);
        (function() {
            var mvl = document.createElement('script');
            mvl.type = 'text/javascript';
            mvl.async = true;
            mvl.src = ('https:' == document.location.protocol
                ? 'https://cdn.dsp.com/static/js/loader.js'
                : 'http://cdn.dsp.com/static/js/loader.js');
            var s = document.getElementsByTagName('script')[0];
            s.parentNode.insertBefore(mvl, s);
        })();
    </script>

    <script async=async>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?cba225c8353730e7e2f8f18adcf41d7a";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>

    <script type="text/javascript" async=async>
        var _xwq = _xwq || [];
        (function () {
            var u = "//bitj.benlai.com/Trafficstatistics/";
            _xwq.push(["setSiteId", 10]);
            var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
            g.type = 'text/javascript'; g.async = true; g.defer = true; g.src = u + 'tj/xwpk.js'; s.parentNode.insertBefore(g, s);
        })();
    </script>
    <input name="__RequestVerificationToken" type="hidden" value="QyrEJ1fkSWcZ1JBLPoQ9x+8lzedYQLGharHL7ODhL8VoAnznyTLX0mRIIWduhfy8U3z8lUNCf6/oxpKvZZGmvsQonSjAeD9xTyQau1eT5xav5KxC7bNOLgY6BRhbPJSLKZJpWaNYb96R5Tm1JnsDyaFrK17qYYbKyiKI+MRimK8=" />
</body>
</html>
<script>
    //购物车显示
    $.ajax({

        type:"get",
        url:"/Home/ShowShopping",
        success:function(data){
           
            $(data).each(function(index,item){
               
                var str="<tr><td><input name='Pid' type='hidden' value='"+item.Pid+"'/>"+item.Pname+"</td></td><td><img width='50' height='50' src='/Upload/"+item.PImgHref+"'/></td><td><span id='z"+item.Pid+"'>"+item.Price+"</span></td><td><input name='ProductNum' type='hidden' value='"+item.ProNum+"'/><input id='k"+item.Pid+"' type='number' value='"+item.ProNum+"' onclick='fun("+item.Pid+")'/></td><td><input id='jg"+item.Pid+"'  type='hidden'  name='OrderPrice' value='"+(item.Price*item.ProNum)+"'/><span id='sum"+item.Pid+"'>"+(item.Price*item.ProNum)+"</span></td><td><a style='cursor:pointer;' onclick='del("+item.shoppingID+")'>删除</a></td></tr>";
                $("#aa").append(str);
                
            })
           
        }

    });
    //合计
    function fun(d)
    {
        var price=$("#z"+d+"").text();//获取商品的单价

        var num=$("#k"+d+"").val();//获取要购买的数量

       
        var h=price*num;//总价
        

        $("#jg"+d+"").val(h); //替换隐藏域的价格
        
        $("#sum"+d+"").html(h);//替换     
        
                
    }
     
    function del(id)
    {
        if(confirm("确认要删除吗？"))
        {
            $.ajax({
                type:"get",
                url:"/Home/delShoppingCar",
                data:{
                    id:id
                },
                success:function(data){
                    if(data==1)
                    {
                        alert("删除成功");
                        location.reload();
                    }else if(data==2)
                    {
                        alert("删除失败");
                    }
                }
        
            });
        }
       
    }

    //去结算
    function Balance()
    {
        
        var pids="";
        $("input:hidden[name='Pid']").each(function(){
            if(pids.length>0)
            {
                pids+=",";
            }
            pids+=$(this).val();
        })

        var num="";
        $("input:hidden[name='ProductNum']").each(function(){
            if(num.length>0)
            {
                num+=",";
            }
            num+=$(this).val();
        })
        var sumPrice="";
        $("input:hidden[name='OrderPrice']").each(function(){
            if(sumPrice.length>0)
            {
                sumPrice+=",";
            }
            sumPrice+=$(this).val();
        })

        $.ajax({
            
            type:"get",
            url:"/Home/placeorder",
            dataType:"text",
            success:function(data){
                window.location.href="/Home/placeorder?ids="+pids+"&numb="+num+"&sum="+sumPrice;
            }
        });
    }
</script>

